package com.by.goods.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.List;

@Data
@TableName
public class Attr {
    /**
     * attr id
     */
    @TableId(value = "attr_id", type = IdType.AUTO)
    private Integer attrId;
    private int shopId;
    /**
     * 属性名称
     */
    private String name;
    /**
     * 属性描述
     */
    @TableField(value = "descs")
    private String descs;
    /**
     * 0:不需要，1:需要
     */
    private int searchType;
    /**
     * 0:销售属性，1:基本属性
     */
    private int attrType;

    @TableField(exist = false)
    List<AttrValue> attrValueList;

}
